//
//  WBDiscoverTableViewController.swift
//  WBWeiBo
//
//  Created by 王斌 on 16/7/9.
//  Copyright © 2016年 王斌. All rights reserved.
//

import UIKit

class WBDiscoverTableViewController: WBVisitorTableViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        if isLongin {
            
        } else {
            //  未登录
            visitorView?.updateVisitorInfo("登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过", imageName: "visitordiscover_image_message")
        }
        
        setupUI()
    }
    
    
    private func setupUI(){
        let searchView = WBDiscoverSearchView.searchView()
        
        // 设置xib的宽度
        searchView.width = self.view.width
        
        navigationItem.titleView = searchView
        
        tabBarItem.badgeValue = "哈哈"
    }

}
